package xju_5_6.springboot_5_6.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import xju_5_6.springboot_5_6.entity.User1;

import java.util.List;

//@Mapper  // 生成代理类
public interface User1Mapper {
    @Select("select  * from  user")
    List<User1> list();

    @Insert("insert into user(username,password) values (#{username},#{password})")
    void insert(User1 user);
}
